<div id="column-left" style="background: url(/images/leftshop.png) repeat-y;padding: 20px 20px 0 20px;margin-left: -10px;">
    <span class='re2'>Профиль пользователя</span><br>
<span id="nameshop" >{$user->first_name}</span>
<span class="countrycity" >{$user->country}, {$user->city}</span>
<div style="text-align:center;margin:10px 0;width:187px;height:187px;">    
<img src="{$user->photo}" alt="{$user->login}" style="width:187px;height:187px;"> 
<br>

</div>
{if !$user->nameshop}<a class="button green-pink" href="{geturl controller='account' action='settingshop'}">Создать магазин</a>{/if}
{if !$user->shop->payflag}<a class="button green-pink" href="{geturl controller='account' action='payways'}">Оплатить клубную карту</a>
{else}<b></b>{/if}
<div class="leftmenu">
<a href="{geturl controller='account' action='index'}" {if $usermenu=='index'}class="blockmenuact"{else}class="blockmenu"{/if}>Профиль</a>
<a href="{geturl controller='account' action='setting'}" class="out">Настройки</a>
{if $user->nameshop}
    <a href="{geturl controller='account' action='settingshop'}" class="out">Настройки магазина</a>
    <a href="{geturl controller='account' action='products'}" {if $usermenu=='myproducts'}class="blockmenuact"{else}class="blockmenu"{/if}>Мои продукты</a>
{/if}
<a href="{if $requestsCount > 0}{geturl route='requests'}{else}{geturl controller='account' action='friends'}{/if}">Мои друзья{if $requestsCount > 0}<b> +{$requestsCount}</b>{/if}</a>
<a href="{geturl controller='account' action='messages'}">Мои сообщения{if $newPmCount > 0}<b> +{$newPmCount}</b>{/if}</a>
<div class="cart-total">
<a href="{geturl controller='account' action='active'}">Покупки</a>
<a href="{geturl controller='account' action='myorders'}">Мои заказы</a>

<a href="{geturl controller='account' action='reviews'}">Отзывы</a>
<!--<a href="{geturl controller='account' action='favorite'}">Избранные</a>-->
{if $user->nameshop}
<a href="{geturl controller='account' action='sale'}">Продажи</a>
<a href="{geturl controller='account' action='myordersshop'}">Стол заказов магазина</a>
{/if}
</div>
 </div>  
                
</div>
